<template>
  <view>
    <my-login v-if="!userId"></my-login>
    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
import { mapState } from 'vuex';

export default {
  computed: {
    ...mapState('m_user', ['userId']),
  },
  data() {
    return {};
  },
};
</script>